package com.example.electronicmall.controller;

import com.example.electronicmall.entity.BusinessEntity;
import com.example.electronicmall.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 
 *
 * @author mwh
 * @email 1062966353@qq.com
 * @date 2022-12-02 14:48:53
 */
@RestController
@RequestMapping("/business")
public class BusinessController {
    @Autowired
    private BusinessService businessService;

    @PostMapping("/login")
    public BusinessEntity login(String username, String password){
        return businessService.login(username, password);
    }



}
